<?php

namespace UF\AccountBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class AccountType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {    
        $builder->add('username');
        $builder->add('description');
        $builder->add('role', 'choice', array(
        		'choices' => array('REPAS' => 'Invité au repas', 'HONNEUR' => 'Vin d\'honneur', 'ADMIN' => 'Organisateur'),
        ));
    }
    
    public function getName()
    {
        return 'account';
    }
}